package com.jingdong.service.address.impl;

import com.jingdong.dao.address.OrderAddressDao;
import com.jingdong.model.Order_address;
import com.jingdong.service.address.OrderAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderAddressServiceImpl implements OrderAddressService {
    @Autowired
    private OrderAddressDao orderAddressDao;

    @Override
    public int save(Order_address order_address) {
        return orderAddressDao.save(order_address);
    }

    @Override
    public List<Order_address> addressList(int uid) {
        return orderAddressDao.addressList(uid);
    }
}
